/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

.ant-tabs-tab.ant-tabs-tab-active {
  font-weight: 500;
}

.ant-tabs.ant-tabs-top.h-full {
  .ant-tabs-content.ant-tabs-content-top {
    height: 100%;

    .ant-tabs-tabpane {
      height: 100%;
    }
  }
}

.ant-tabs-tab + .ant-tabs-tab {
  margin: 0 0 0 24px;
}

.custom-tab-spacing {
  .ant-tabs-nav {
    margin: 0 !important;
    padding: 0 24px;
  }
}

.ant-tabs-tab {
  color: @text-color-tertiary;
}

.ant-tabs.tabs-new {
  width: 100%;

  .ant-btn.ant-btn-icon-only.tab-expand-icon {
    padding: 0;
    height: 20px;
    width: 20px;
    vertical-align: middle;
    * {
      font-size: 20px !important;
    }
  }

  .ant-tabs-nav {
    margin: 0;
    padding: 0 20px;
    height: 48px;
    background: @white;
    border-radius: 12px;
    border: 1px solid @grey-15;

    &::before {
      border-bottom: none;
    }

    .ant-tabs-nav-list {
      border-bottom: none;

      .ant-tabs-tab {
        padding: 8px 0;
        position: relative;

        &.ant-tabs-tab-active {
          color: @primary-color;
          font-weight: 600;

          [data-testid='count'] > span {
            background-color: @primary-color;
            border-color: @primary-color;
            color: @white;
          }
        }
      }
    }
  }

  .ant-tabs-tabpane {
    margin-top: @padding-sm;
    border-radius: @border-rad-sm;
    background-color: @white;
  }

  .ant-tabs-ink-bar {
    bottom: 6px;
    height: 2px;
    background-color: @primary-color;
  }
}

.glossary-details,
.entity-details-page-tabs {
  .ant-tabs.tabs-new {
    .ant-tabs-tabpane {
      background-color: @grey-9;
      margin-bottom: @margin-md;
    }
  }
}
